package cn.dm.client;
import cn.dm.pojo.DmScheduler;

import cn.dm.fallback.DmSchedulerClientFallBack;
import java.util.List;
import java.util.Map;

import cn.dm.config.DmConfiguration;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
<<<<<<< HEAD
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "dm-scheduler-provider", configuration = DmConfiguration.class, fallback = DmSchedulerClientFallBack.class)
public interface RestDmSchedulerClient {

    @RequestMapping(value = "/getDmSchedulerById", method = RequestMethod.POST)
    public DmScheduler getDmSchedulerById(@RequestParam("id") Long id) throws Exception;

    @RequestMapping(value = "/getDmSchedulerListByMap",method = RequestMethod.POST)
    public List<DmScheduler>	getDmSchedulerListByMap(@RequestBody Map<String, Object> param)throws Exception;

    @RequestMapping(value = "/getDmSchedulerCountByMap",method = RequestMethod.POST)
    public Integer getDmSchedulerCountByMap(@RequestBody Map<String, Object> param)throws Exception;

    @RequestMapping(value = "/qdtxAddDmScheduler",method = RequestMethod.POST)
    public Integer qdtxAddDmScheduler(@RequestBody DmScheduler dmScheduler)throws Exception;

    @RequestMapping(value = "/qdtxModifyDmScheduler",method = RequestMethod.POST)
    public Integer qdtxModifyDmScheduler(@RequestBody DmScheduler dmScheduler)throws Exception;

    @RequestMapping(value = "/getDmSchedulerByItemId", method = RequestMethod.POST)
    public DmScheduler getDmSchedulerByItemId(@RequestParam("itemId") Long itemId) throws Exception;


}

